import 'package:boss/models/staff.dart';
import 'package:json_annotation/json_annotation.dart';

part 'staff_page_data.g.dart';

@JsonSerializable()
class StaffPageData extends Object {
  int total;

  int totalPage;

  List<Staff> items;

  StaffPageData(
    this.total,
    this.totalPage,
    this.items,
  );

  factory StaffPageData.fromJson(Map<String, dynamic> srcJson) => _$StaffPageDataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$StaffPageDataToJson(this);
}
